from rest_framework import serializers
from product.models import Product, ProductBanner, ProductType

class ProductSerializer(serializers.ModelSerializer):
    """
    商品管理
    """
    class Meta:
        model = Product
        fields = '__all__'


class ProductTypeSerializer(serializers.ModelSerializer):
    """
    商品类型管理
    """
    class Meta:
        model = ProductType
        fields = '__all__'


class ProductBannerSerializer(serializers.ModelSerializer):
    """
    商品模块banner图管理
    """
    class Meta:
        model = ProductBanner
        fields = '__all__'